﻿@model List<CinemaManagement.Models.OrderInfo>

@{
    ViewBag.Title = "Order";
    Layout = "~/Views/Shared/_LayoutUser.cshtml";
}

<h2>Order</h2>

<section id="UserOrder">
    <table class="table">
        <tr>
            <th>电影名称</th>
            <th>下单时间</th>
            <th>放映厅</th>
            <th>电影时长</th>
            <th>操作</th>
        </tr>
        @if (Model != null)
        {
            foreach (var m in Model)
            {
                <tr>
                    <td>@m.MovieName</td>
                    <td>@m.OrderTime</td>
                    <td>@m.OrderHall</td>
                    <td>@m.ReleaseTime?.ToString("HH:mm")</td>
                    <td>
                        <a href="@Url.Action("Unsubscribe","User",new {orderId = m.OrderId})">退订</a>
                    </td>
                </tr>
            }
        }
    </table>

</section>